﻿using LPP.Entity.Orders;


namespace LPP.Entity.Work
{
    public class Worker
    {
        public int WorkerID { get; set; }
        public string Name { get; set; }
        public string Phone { get; set; }
        public string RealName { get; set; }
        public string IdCardNumber { get; set; }
        public string IdCardFront { get; set; }
        public string IdCardBack { get; set; }
        public bool IsVerified { get; set; }
        public DateTime CreatedAt { get; set; }
        public virtual ICollection<OrderDetail> OrderDetails { get; set; } // 关联的订单明细
        public WorkerStatus Status { get; set; }
        public virtual ICollection<Order> Orders { get; set; }
    }
    
    public enum WorkerStatus
    {
        /// <summary>
        /// 待完善信息
        /// </summary>
        PendingVerification = 0,

        /// <summary>
        /// 正常状态
        /// </summary>
        Active = 1,

        /// <summary>
        /// 已禁用
        /// </summary>
        Disabled = 2
    }
}
